package com.dalin.platform.log.action;

import com.dalin.common.pager.PageInfo;
import com.dalin.framework.action.StrutsTwoAction;
import com.dalin.platform.log.condition.LogOperateCondition;
import com.dalin.platform.log.service.LogService;
/*****************************************************************************
 * @content: 类信息                                                   *
 * @author : 那建林                                                                                                                                 *
 * @crtDate: 2010-06-23                                                     *
 * @modDate: 2010-06-23                                                     *
 * @version: 1.00                                                           *
 ****************************************************************************/
public class LogOperateQueryAction extends StrutsTwoAction{
    private LogService logService; // 
    private String condStr; // 查询条件
    private int start; // 查询起始行数
    private int limit; // 每页显示行数

    public String execute()throws Exception {
        super.printInfo("", "===== this action begin");
        LogOperateCondition cond = (LogOperateCondition) 
        		getCond(LogOperateCondition.class, condStr, start, limit);
        PageInfo pageInfo = logService.queryLogOperates(cond.prepareParams());
        setResContent(pageInfo);
        super.printInfo("", "===== this action end");
        return null;
    }

    public LogService getLogService() {
        return logService;

    }

    public void setLogService(LogService logService) {
        this.logService = logService;

    }

    public String getCondStr() {
        return condStr;

    }

    public void setCondStr(String condStr) {
        this.condStr = condStr;

    }

    public int getStart() {
        return start;

    }

    public void setStart(int start) {
        this.start = start;

    }

    public int getLimit() {
        return limit;

    }

    public void setLimit(int limit) {
        this.limit = limit;

    }

}
